home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
Interrupts.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
3KB
|
102 lines
;
; File: Interrupts.a
;
; Contains: Public Interface to the Interrupt Manager.
;
; Version: Technology: PowerSurge 1.0.2 and beyond (including Copland)
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__INTERRUPTS__') = 'UNDEFINED' THEN
__INTERRUPTS__ SET 1
IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
include 'Types.a'
ENDIF
IF FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE THEN
; Interrupt types
; typedef long InterruptMemberNumber
InterruptSetMember RECORD 0
setID ds.l 1 ; offset: $0 (0)
member ds.l 1 ; offset: $4 (4)
sizeof EQU * ; size: $8 (8)
ENDR
kISTChipInterruptSource EQU 0
kISTOutputDMAInterruptSource EQU 1
kISTInputDMAInterruptSource EQU 2
kISTPropertyMemberCount EQU 3
ISTProperty RECORD 0
elements ds.b 3 * InterruptSetMember.sizeof
sizeof EQU * ; size: $18 (24)
ENDR
; typedef long InterruptReturnValue
kFirstMemberNumber EQU 1
kIsrIsComplete EQU 0
kIsrIsNotComplete EQU -1
kMemberNumberParent EQU -2
; typedef Boolean InterruptSourceState
kSourceWasEnabled EQU 1
kSourceWasDisabled EQU 0
kReturnToParentWhenComplete EQU $00000001
kReturnToParentWhenNotComplete EQU $00000002
; typedef OptionBits InterruptSetOptions
; Interrupt Services
;
; extern OSStatus CreateInterruptSet(InterruptSetID parentSet, InterruptMemberNumber parentMember, InterruptMemberNumber setSize, InterruptSetID *setID, InterruptSetOptions options)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION CreateInterruptSet
ENDIF
;
; extern OSStatus InstallInterruptFunctions(InterruptSetID setID, InterruptMemberNumber member, void *refCon, InterruptHandler handlerFunction, InterruptEnabler enableFunction, InterruptDisabler disableFunction)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION InstallInterruptFunctions
ENDIF
;
; extern OSStatus GetInterruptFunctions(InterruptSetID setID, InterruptMemberNumber member, void **refCon, InterruptHandler *handlerFunction, InterruptEnabler *enableFunction, InterruptDisabler *disableFunction)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetInterruptFunctions
ENDIF
;
; extern OSStatus ChangeInterruptSetOptions(InterruptSetID setID, InterruptSetOptions options)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION ChangeInterruptSetOptions
ENDIF
;
; extern OSStatus GetInterruptSetOptions(InterruptSetID setID, InterruptSetOptions *options)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetInterruptSetOptions
ENDIF
ENDIF
ENDIF ; __INTERRUPTS__